package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.SysUsers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EquipmentManageMapper;
import com.ruoyi.system.domain.EquipmentManage;
import com.ruoyi.system.service.IEquipmentManageService;

/**
 * 设备管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-29
 */
@Service
public class EquipmentManageServiceImpl implements IEquipmentManageService 
{
    @Autowired
    private EquipmentManageMapper equipmentManageMapper;

    /**
     * 查询设备管理
     * 
     * @param id 设备管理主键
     * @return 设备管理
     */
    @Override
    public EquipmentManage selectEquipmentManageById(Long id)
    {
        return equipmentManageMapper.selectEquipmentManageById(id);
    }

    /**
     * 查询设备管理列表
     * 
     * @param equipmentManage 设备管理
     * @return 设备管理
     */
    @Override
    public List<EquipmentManage> selectEquipmentManageList(EquipmentManage equipmentManage)
    {
        return equipmentManageMapper.selectEquipmentManageList(equipmentManage);
    }

    /**
     * 新增设备管理
     * 
     * @param equipmentManage 设备管理
     * @return 结果
     */
    @Override
    public int insertEquipmentManage(EquipmentManage equipmentManage)
    {
        return equipmentManageMapper.insertEquipmentManage(equipmentManage);
    }

    /**
     * 修改设备管理
     * 
     * @param equipmentManage 设备管理
     * @return 结果
     */
    @Override
    public int updateEquipmentManage(EquipmentManage equipmentManage)
    {
        return equipmentManageMapper.updateEquipmentManage(equipmentManage);
    }

    /**
     * 批量删除设备管理
     * 
     * @param ids 需要删除的设备管理主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentManageByIds(Long[] ids)
    {
        return equipmentManageMapper.deleteEquipmentManageByIds(ids);
    }

    /**
     * 删除设备管理信息
     * 
     * @param id 设备管理主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentManageById(Long id)
    {
        return equipmentManageMapper.deleteEquipmentManageById(id);
    }

    @Override
    public List<EquipmentManage> ListIMEI(Integer deptid) {
        return equipmentManageMapper.ListIMEI(deptid);
    }

}
